<template>
  <div>
    <el-button type="primary" :disabled='buttonDisabled || isloading'>click me</el-button>
    <el-calendar v-model="value" ref="a"></el-calendar>
  </div>
</template>

<script>
export default {
  computed1:{

  },
  methods:{
    handleClick(){
      console.log(5)
      this.$refs.a.$forceUpdate()
      console.log(6)
      this.component('MyComponent',{template:<div>hello</div>})
    }
  },
  data() {
    return {
      isloading:false,
      buttonDisabled:false,
      value: new Date(),
    };
  },
  mounted() {
    let obj = { name: "zcc", age: 30 };
    let arr = [1, 2, 3];
    for (let ele of arr) {
      console.log(ele);
    }
  },
};
</script>
